﻿<!--revision $Id$-->
<Window x:Class="SeriesAxisTest.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:sys="clr-namespace:System;assembly=mscorlib"
	xmlns:coll="clr-namespace:System.Collections;assembly=mscorlib"
	xmlns:parts="clr-namespace:OpenWPFChart.Parts;assembly=OpenWPFChart.Parts"
	Title="Series Axis Element Test" SizeToContent="WidthAndHeight">

	<Window.InputBindings>
		<KeyBinding Key="Add" Modifiers="Control" CommandParameter="1.2" Command="NavigationCommands.Zoom" />
		<KeyBinding Key="Subtract" Modifiers="Control" CommandParameter="-1.2" Command="NavigationCommands.Zoom" />
	</Window.InputBindings>
	<Window.CommandBindings>
		<CommandBinding Command="NavigationCommands.Zoom" Executed="ZoomExecutedCommandHandler"/>
	</Window.CommandBindings>

	<Window.Resources>
		<coll:ArrayList x:Key="series">
			<sys:String>first</sys:String>
			<sys:String>second</sys:String>
			<sys:String>third</sys:String>
			<sys:String>fourth</sys:String>
			<sys:String>fifth</sys:String>
			<sys:String>sixth</sys:String>
			<sys:String>seventh</sys:String>
			<sys:String>eighth</sys:String>
			<sys:String>ninth</sys:String>
			<sys:String>tenth</sys:String>
		</coll:ArrayList>
	</Window.Resources>

	<DockPanel>
		<!-- Menu -->
		<Menu DockPanel.Dock="Top">
			<MenuItem Header="_File">
				<MenuItem Header="_Exit" Click="Exit_Click"/>
			</MenuItem>
			<MenuItem Header="_View">
				<MenuItem Header="Axis _Properties" Click="AxisProperties_Click"/>
				<Separator/>
				<MenuItem Header="Zoom_In (Ctrl+NumPad+)" Command="Zoom" CommandParameter="1.2"/>
				<MenuItem Header="Zoom_Out (Ctrl+NumPad-)" Command="Zoom" CommandParameter="-1.2"/>
			</MenuItem>
		</Menu>

		<Grid Name="panel">
			<parts:SeriesAxis Name="axis">
				<parts:SeriesAxis.AxisScale>
					<parts:ChartSeriesScale Series="{StaticResource series}" Start="first" Stop="tenth" Scale="30" LongTickRate="3" />
				</parts:SeriesAxis.AxisScale>
			</parts:SeriesAxis>
		</Grid>
	</DockPanel>
</Window>
